<?php

namespace app\admin\model\prl;

use think\Model;

/**
 * 
 */
class Channelsviewvalues extends Model
{
	// 表名
    protected $table = 'prl_channels_viewsfields_value';


    public function Channels()
    {
        return $this->hasMany('Channels','channels_id','id');
    }

    public function scopeFieldsIds($q, $fieldIds = [])
    {
    	$q->where('viewsfields_id', 'in', $fieldIds);
    }
}